/**
 * 类：点
 */
export class EPoint {
    x: number;
    y: number;

    constructor(x: number, y: number) {
        this.x = Math.round(x);
        this.y = Math.round(y);
    }

    copy(): EPoint {
        return new EPoint(this.x, this.y);
    }

    toJson() {
        return {x: this.x, y: this.y}
    }
}
